
// This class serves to store two members of any valid type.
// The members are initialized when the constructor is called.


#ifndef CCLASSTEMPLATE_H_
#define CCLASSTEMPLATE_H_


template <class T> class CClassTemplate
{
    private:

        T myFirst, mySecond;

    public:

        CClassTemplate(T theFirst, T theSecond)
        {
            myFirst = theFirst;
            mySecond = theSecond;
        }

        inline T getMax();
};


template <class T> inline T CClassTemplate<T>::getMax()
{
    T retval;
    retval = (myFirst > mySecond) ? myFirst : mySecond;
    return retval;
}


#endif /* CCLASSTEMPLATE_H_ */
